/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package services;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

/**
 *
 * @author Jorge
 */
public abstract class ContreteService {

    protected String urlBase;

    public ContreteService(String urlBase) {
        this.urlBase = urlBase;
    }
    
    
    
    protected String lerInputStream(InputStream inputStream) throws IOException {

        InputStreamReader isr = new InputStreamReader(inputStream);
        BufferedReader br = new BufferedReader(isr);
        String s = br.readLine();
        while (br.ready()) {
            s += br.readLine();
        }

        return s;

    }
    
}
